package cn.tedu.rtc.mqtt.service.messagesender;

import cn.tedu.rtc.mqtt.model.CommonTopicResponse;

/**
 * Mqtt推送服务
 */
public interface IMessageSenderService {
    /**
     * Publish a message to a specific topic.
     *
     * @param topic    target
     * @param response message
     */
    void publish(String topic, CommonTopicResponse response);

    /**
     * Use a specific qos to push messages to a specific topic.
     *
     * @param topic    target
     * @param qos      qos
     * @param response message
     */
    void publish(String topic, int qos, CommonTopicResponse response);

}
